package com.neusoft.mapper;

import com.neusoft.domain.Shop;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface ShopMapper {
    @Select("select * from shop where business_id=#{businessId}")
    Shop getBusinessById(Integer businessId);

    List<Shop> pageSelectShop(@Param("shop_name") String shop_name,@Param("shop_address") String shop_address);
    @Update("update shop set recommend=#{recommend} where shop_id=#{shop_id}")
    void recommendShop(@Param("shop_id") Integer shop_id, @Param("recommend") Integer recommend);
}
